package org.deva.erp.common.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.deva.erp.base.entity.BaseEntity;

/**
 * Project: erp<br>
 * Description: 字典实体表<br>
 * Copyright (c) 2012<br>
 * All Rights Reserved.<br>
 * @author <a href="mailto:gly420@163.com">GuanLuYong</a><br>
 */
@Entity
@Table(name = "ERP_DICT", schema = "DEVA")
public class Dict extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(name = "CODE", length = 50)
	private String code;
	
	@Column(name = "NAME", length = 50)
	private String name;
	
	@Column(name = "VALUE", length = 200)
	private String value;
	
	@Column(name = "TYPE", length = 50)
	private String type;
	
	@Column(name = "PARENT_ID")
	private Long parentId;
	
	@Column(name = "SYS_ID")
	private Integer sysId;

	// Getter & Setter
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getSysId() {
		return sysId;
	}

	public void setSysId(Integer sysId) {
		this.sysId = sysId;
	}

}
